const handleGeneratorUnit = function (style, prop) {
  return function ({ Utility, Style }) {
    return Utility.handler
      .handleStatic(Style(style))
      .handleSize()
      .handleNumber(1, undefined, 'int', number => `${number}rpx`)
      .handleNegative()
      .createProperty(prop)
  }
}

export default {
  preflight: false,
  prefixer: false,
  extract: {
    // 忽略部分文件夹
    exclude: ['node_modules', '.git', 'dist'],
  },
  corePlugins: {
    // 禁用掉在小程序环境中不可能用到的 plugins
    container: false,
  },
}
